//
//  expage9.c
//  denissritchie
//
//  Created by Amit Jha on 7/31/12.
//  Copyright (c) 2012 Amit Jha. All rights reserved.
//

#include <stdio.h>

/* print fahrenhite-celciuis table 
            for fahr = 0, 20,.... ,300 */

int mainpage9(){
    int fahr , celcius;
    int lower, upper, step;
    
    lower = 0; /* lower limit of temp table*/
    upper = 300; /*upper limmit of temp table*/
    step = 20;
    
    fahr = lower;
    
    while (fahr <= upper) {
        celcius  = 5 * (fahr - 32) / 9;
        printf("%3d\t\t%6d\n", fahr, celcius);
        fahr = fahr + step;
    }
    
    return 0;

}